//
// Created by jinbang.li on 2023/4/6.
//

#ifndef OPENPLAYDEMO_IOPDEMUX_H
#define OPENPLAYDEMO_IOPDEMUX_H

#include "../Data/OpData.h"
#include "../Demux/OpThread.h"
#include "../Observer/IOpObserver.h"
#include "../Data/OpParameter.h"
class IOpDemux: public IOpObserver{
public:
    ///打开流媒体文件/流媒体文件 rtmp/http/rtsp
    virtual bool Open(const char *url) = 0;

    ///视频参数
    virtual OpParameter GetVideoParam() = 0;

    ///音频参数
    virtual OpParameter GetAudioParam() = 0;

    virtual OpData Read() = 0;

    int totolMs = 0;

protected:
    virtual void Main();
};


#endif //OPENPLAYDEMO_IOPDEMUX_H
